package org.mall.modules.member.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.mall.modules.member.entity.PromotionInformation;
import org.mall.modules.member.mapper.PromotionInformationMapper;
import org.mall.modules.member.service.IPromotionInformationService;
import org.mall.modules.pojo.member.MemberPageDTO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Description: 推广员推广商铺信息表
 * @Author: jeecg-boot
 * @Date:   2019-12-07
 * @Version: V1.0
 */
@Service
public class PromotionInformationServiceImpl extends ServiceImpl<PromotionInformationMapper, PromotionInformation> implements IPromotionInformationService {
    @Resource
    private PromotionInformationMapper promotionInformationMapper;
    /**
     * 通过推广员id 获取推广员信息 + 推广的商铺信息
     * @param id
     * @return
     */
    @Override
    public MemberPageDTO getListPromotionInformation(String id) {
        MemberPageDTO memberPageDTO=promotionInformationMapper.getPromotionInformations(id);
        return memberPageDTO;
    }
}
